{extend name='extra@admin/content'}

{block name="button"}

{/block}

{block name="content"}

<!-- 表单搜索 开始 -->
<form class="layui-form layui-form-pane form-search" action="__SELF__" onsubmit="return false" method="get">
    <div class="layui-form-item layui-inline">
        <label class="layui-form-label">会员姓名</label>
        <div class="layui-input-inline">
            <input name="realname" value="{$Think.get.realname|default=''}" placeholder="请输入会员姓名" class="layui-input">
        </div>
    </div>


    <div class="layui-form-item layui-inline">
        <button class="layui-btn layui-btn-primary"><i class="layui-icon">&#xe615;</i> 搜 索</button>
    </div>
</form>
<!-- 表单搜索 结束 -->

<form onsubmit="return false;" data-auto="true" method="post">
    {if empty($list)}
    <p class="help-block text-center well">没 有 记 录 哦！</p>
    {else}
    <input type="hidden" value="resort" name="action"/>
    <table class="layui-table" lay-skin="line" lay-size="sm">
        <thead>
            <tr>
                <th class='list-table-check-td'>
                    <input data-none-auto="" data-check-target='.list-check-box' type='checkbox'/>
                </th>
                <th class='text-left nowrap'>ID</th>
                <th class='text-left nowrap'>头像</th>
                <th class='text-left nowrap'>姓名</th>
                <th class='text-left nowrap'>手机号</th>
                <th class='text-left nowrap'>余额</th>
                <th class='text-center nowrap'>权益积分 | 等级积分</th>
                <th class='text-left nowrap'>操作</th>
            </tr>
        </thead>
        <tbody>
            {volist name='list' id='vo'}
            <tr>
                <td class='list-table-check-td'>
                    <input class="list-check-box" value='{$vo.uid}' type='checkbox'/>
                </td>
                <td class='text-left nowrap'>
                    {$vo.uid}
                </td>
                <td class='text-left nowrap'>
                    <img style="width:25px;height:25px;border-radius:50%;margin-right:10px" data-tips-image src="{$vo.logo}-{$qiniu}">
                </td>
                <td class='text-left nowrap'>
                    {$vo.realname}
                </td>
                <td class='text-left nowrap'>
                    {$vo.mobile}
                </td>
                <td class='text-left nowrap'>
                    {$vo.user_money}
                </td>
                <td class='text-center nowrap'>
                    <span class="text-explode">|</span>
                    {$vo.pay_points}
                    <span class="text-explode">|</span>
                    {$vo.level_point}
                </td>
                <td class='text-left nowrap'>
                    {if auth("$classuri/recharge")}
                    <span class="text-explode">|</span>
                    <a data-modal='{:url("$classuri/recharge")}?uid={$vo.uid}' href="javascript:void(0)" data-title="充值-{$vo.realname}">充值</a>
                    {/if}
                    {if auth("$classuri/exchange")}
                    <span class="text-explode">|</span>
                    <a data-modal='{:url("$classuri/exchange")}?uid={$vo.uid}' href="javascript:void(0)" data-title="积分兑换-{$vo.realname}（当前积分：{$vo.pay_points}）">兑换</a>
                    {/if}
                </td>
            </tr>
            {/volist}
        </tbody>
    </table>
    {if isset($page)}<p>{$page}</p>{/if}
    {/if}
    <script>
        window.laydate.render({range: true, elem: '#range-date', format: 'yyyy/MM/dd'});
    </script>
</form>
{/block}